import 'package:get/get.dart';
import 'dynamic_ext.dart';

/// Get 扩展
extension GetExt on GetInterface {
  T? parseParams<T>(String key) {
    if (arguments is Map) {
      Object? data = arguments?[key];
      return data.parseParams<T>();
    } else {
      return null;
    }
  }
}
